package week03.saas;

/**
 * Created by zhangxiaokun on 20userId8/2/8.
 */
public class TestManager {
    public static void main(String[] args) {
            test(1);
            test(2);
    }
    //测试
    public static void test(int userId) {
        System.out.println("\n=================");

        System.out.println("userId:" + userId);
        System.out.println(Manager.getMananger(userId));

        //登记 用户
        Manager.userAppRegister(userId);
        System.out.println(Manager.getMananger(userId));
        System.out.println(Manager.getMananger(userId));
        System.out.println(Manager.getMananger(userId) == Manager.getMananger(userId));

        Manager manager = Manager.getMananger(userId);
        System.out.println("再登记一次");
        Manager.userAppRegister(userId);
        System.out.println(manager);
        System.out.println(Manager.getMananger(userId));
        System.out.println(manager == Manager.getMananger(userId));
    }
}

